// 获取token
function getToken (key = 'token') {
  return window.localStorage.getItem(key)
}

// 设置token
function setToken (key = 'token', value) {
  window.localStorage.setItem(key, value)
}

// 删除token
function removeToken (key = 'token') {
  window.localStorage.removeItem(key)
}

export { getToken, setToken, removeToken }
